﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace mBook.Utils
{
    public class NetworkException : Exception
    {
        public NetworkException()
        {
        }

        public NetworkException(string message)
            : base(message)
        {
        }

        public NetworkException(string format, params object[] args)
            : base(string.Format(format, args)) 
        { 
        }

        public NetworkException(string message, Exception innerException)
            : base(message, innerException)
        {
        }

        public NetworkException(string format, Exception innerException, params object[] args)
            : base(string.Format(format, args), innerException) 
        { 
        }
    }

    public class DatabaseException : Exception
    {
        public DatabaseException(string message) : base(message) { }
    }
}
